package com.flute.haflute.common;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * 进行对象序列化的统一接口
 * 
 * Usage: @see com.flute.haflute.net.messaging.Message
 */
public interface SerializerInterface<T> {

	public void serialize(T t, DataOutputStream dos) throws IOException;

	public T deserialize(DataInputStream dis) throws IOException;
}
